package com.example.demo02.service.impl;

import com.example.demo02.service.TestService;
import org.springframework.stereotype.Service;

import java.io.IOException;

@Service
public class TestServiceImpl implements TestService {
    @Override
    public void restart() {
        try {
            Runtime.getRuntime().exec("C:\\boot-projects\\demo02\\src\\main\\resources\\static\\restart.bat");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
